using UnityEngine;
using System.Collections;

public class FollowingCamera : MonoBehaviour 
{
	
	public Transform target;
	public float cameraHeight = 5.0f;
    public float cameraDist = 10.0f;

    void Update () 
	{
        Vector3 pos = target.position + new Vector3(0, cameraHeight, -cameraDist);
        transform.position = pos;
	}
}
